package com.ruoyi.dataserver.controller;

import com.ruoyi.dataserver.service.IFieldQueryService;
import com.ruoyi.dataserver.utils.R;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

/**
 * @ProjectName intelligent-city
 * @Package com.lab.dataserver.controller
 * @ClassName FieldQueryController
 * @Description 空间数据字段查询
 * @Company LAB
 * @Author LXK
 * @Date 2020/6/29 8:37
 * @UpdateUser
 * @UpdateDate
 * @UpdateRemark
 * @Version 1.0.0
 */
@RestController
@RequestMapping("/field")
@Slf4j
public class FieldQueryController {
    @Autowired
    private IFieldQueryService fieldQueryService;

    @RequestMapping("/layer")
    public R queryByLayerOrAuth(@RequestBody Map map){
        return R.ok(fieldQueryService.queryByLayerOrAuth(map));
    }

}
